package CutLoad.web.form
{
	import CutLoad.Base;
	import CutLoad.components.CTextField;
	import CutLoad.components.CTextInput;
	import CutLoad.components.container.ContainerH;
	
	public class LabelTextInput extends Base
	{
		private var _container:ContainerH;
		private var _label:CTextField;
		private var txt:CTextInput;
		public function LabelTextInput(strlabel:String)
		{
			_container=ContainerH.getSimple();
			_label=CTextField.getSimpleTxt(strlabel);
			txt=new CTextInput();
			txt.init();
			_container.appendSome([label,txt]);
			_container.show(this);
		}
		public function get container():ContainerH{
			return _container;
		}
		public function get label():CTextField{
			return _label
		}
		public function setLabel(str:String):void{
			_label.text=str;
			container.update();
			container.setTakeWH();
		}
		public function get value():String{
			return txt.text;
		}
		public function set value(str:String):void{
			txt.text=str;
		}
		public function get textInput():CTextInput{
			return txt;
		}
	}
}